﻿using CanDichVu.Db;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanDichVu.Service.Iservice
{
    public interface IRoles
    {
        int addOrupdate(Role entity);
        void delete(int id);
        void deleteByName(string Name);
        string[] GetRolesForUser(string userName);
        Role GetById(int id);
        bool IsUserInRole(string username, string roleName);
        List<Role> List();
        int CreateOrUpdate_PhanQuyen(UserInRole entity);
        UserInRole GetPhanquyenByUser(int userid);
    }
}
